<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ page import="java.util.*"%>
<%@ page import="org.corolla.cloth.entity.Order"%>
<%@ page import="org.corolla.cloth.entity.ClothSize"%>
<%@ page import="org.corolla.cloth.utils.DataUtil"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>报价单</title>
<link rel="stylesheet" href="../css/style.css" type="text/css" />
</head>
<body background="../images/bg/bg.jpg">
	<div class="TitleDiv">
		<font class="TitleCharFont">我要买</font>
	</div>
	<div class="TitleDiv">
		<br /> <span align="center" style="width: 50%"> <span>
				<a href="../view/StyleMan.jsp"
				style="cursor: hand; cursor: pointer;"><input
					name="styleChooseButton" type="button" class="TitleNoSelectButton"
					id="styleChooseButton" value="款式选择" /></a>
		</span> <span> <a href="../view/SizeChoose.jsp"
				style="cursor: hand; cursor: pointer;"><input
					name="sizeChooseButton" type="button" class="TitleNoSelectButton"
					id="sizeChooseButton" value="尺寸选择" /></a>
		</span> <span> <a href="../view/Lining.jsp"
				style="cursor: hand; cursor: pointer;"><input
					name="liningChooseButton" type="button" class="TitleNoSelectButton"
					id="liningChooseButton" value="面料选择" /></a>
		</span> <span> <a href="../view/AccessoryChoose.jsp"
				style="cursor: hand; cursor: pointer;"><input
					name="accessoryChooseButton" type="button"
					class="TitleNoSelectButton" id="accessoryChooseButton" value="辅料选择" /></a>
		</span> <span><a href="../view/PriceSheet.jsp"
				style="cursor: hand; cursor: pointer;"><input
					name="priceSheetButton" type="button" class="TitleSelectButton"
					id="priceSheetButton" value="报价单" /> </a> </span>
		</span>
	</div>
	<form id="form1" name="form1" method="post" action="carAction">
		</br>
		<div style="margin-left: 84%; width: 170px; top: 100px;">
			<a href="../view/AccessoryChoose.jsp"
				style="cursor: hand; cursor: pointer;"><input
				name="getSizeButton" type="button" class="NextButton"
				id="getSizeButton" value="上一步" /></a><input name="getSizeButton"
				type="submit" class="NextButton" id="getSizeButton" value="提交订单" />
		</div>
		<div class="DetailDiv">
			<table width="924" border="1">
				<tr>
					<td colspan="8"><div align="center">
							<strong class="PriceChareFont">报价单（面料）</strong>
						</div></td>
				</tr>
			</table>

			<%
			    List<Order> orderlist = (List<Order>) session.getAttribute("orderPricelist");

			    if (orderlist != null) {
			        for (int i = 0; i < orderlist.size(); i++) {
			            Order order = orderlist.get(i);
			            ClothSize clothSize = (ClothSize) session.getAttribute(order.getClothSize() + "_size");
			%>
			<table width="924" height="360" border="1">
				<tr>
					<td width="100" class="STYLE1"><div align="right">款名/款号：</div></td>
					<td width="90"><label><%=order.getClothStyle()%></label>
						<div align="left"></div></td>
					<td width="82" class="PriceTDFont"><div align="right">
							<strong>单件报价：</strong>
						</div></td>
					<td width="82"><label><%=DataUtil.getFormatDecimal(order.getUnitPrice())%></label>
						&nbsp;<span class="PriceTDFont">（元）</span></td>
					<td width="101"><div align="right">
							<strong class="PriceTDFont">订单数量：</strong>
						</div></td>
					<td width="51"><label><%=order.getClothMount()%></label>
						&nbsp;<span class="PriceTDFont"><strong>件</strong></span></td>
					<td width="54" class="PriceTDFont"><div align="right">
							<strong>总价：</strong>
						</div></td>
					<td width="82"><label><%=DataUtil.getFormatDecimal(order.getTotalPriceBySize())%></label>&nbsp;<span
						class="PriceTDFont">（元）</span></td>
				</tr>
				<tr>
					<td rowspan="3" class="PriceTDFont" width="82"><div
							align="center">
							<strong>款式</strong>
						</div></td>
					<td width="82">规格型号：</td>
					<td width="82"><div align="center"><%=clothSize.getSize()%></div></td>
					<td rowspan="8" width="82"><div align="center"
							class="StyleImageFont">
							<strong class="PriceTDFont">款式图</strong>
						</div></td>
					<td colspan="4" rowspan="8" width="82"><div align="center">
							<img src="<%=session.getAttribute("style_image").toString()%>"
								width="200" height="195" />
						</div></td>
				</tr>
				<tr>
					<td width="82">服装种类：</td>
					<td width="82"><label><%=order.getClothStyle()%></label></td>
				</tr>
				<tr>
					<td width="82">纺织方式：</td>
					<td width="82"><label> <%=session.getAttribute("Lining").toString()%>
					</label></td>
				</tr>
				<tr>
					<td rowspan="5" class="PriceTDFont" width="82"><div
							align="center">
							<strong>尺寸</strong>
						</div></td>
					<td width="82">袖长：</td>
					<td width="82"><label><%=clothSize.getXcLine()%></label>厘米</td>
				</tr>
				<tr>
					<td width="82">前衣长：</td>
					<td width="82"><label><%=clothSize.getQycLine()%></label>厘米</td>
				</tr>
				<tr>
					<td width="82">胸围：</td>
					<td width="82"><label><%=clothSize.getXwLine()%></label>厘米</td>
				</tr>
				<tr>
					<td width="82">肩宽：</td>
					<td><label><%=clothSize.getJkLine()%></label>厘米</td>
				</tr>
				<tr>
					<td width="82">后衣长：</td>
					<td width="82"><label><%=clothSize.getHycLine()%></label>厘米</td>
				</tr>
			</table>
			<%
			    }
			    }
			%>

		</div>

	</form>
</body>
</html>